package com.iuhao.web.model.testModel;

import com.alibaba.fastjson.JSONObject;
import com.iuhao.web.core.utils.DateUtil;
import com.iuhao.web.model.param.TestParam;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by yanhao on 2017/12/4.
 */
public class TestTime {

    protected static Logger log = LoggerFactory.getLogger(TestTime.class);

    public static void main(String[] args) {

        TestParam testParam = new TestParam();
        testParam.setSubmitTime(DateUtil.getCurrentDate());
        testParam.setEndTime(DateUtil.getCurrentDate());


        Object json = JSONObject.toJSON(testParam);
        String string = JSONObject.toJSONString(testParam);
        log.info(json.toString());
        log.info(string);

    }
}
